/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 98152
 * Date: 2025-04-14
 * Time: 16:30
 */
public class Test {
    public static void main(String[] args) {
        int[][] arr = {{1, 3, 1}, {1, 5, 1}, {4, 2, 1}};
        Solution2 solution2 = new Solution2();
        System.out.println(solution2.maxValue(arr));
    }
    public static void main1(String[] args) {
        System.out.println(gcd(5, 102));
    }

    public static long gcd(long a, long b) {
        while(b != 0) {
            long tmp = a % b;
            a = b;
            b = tmp;
        }
        return a;
    }
}
